package com.farmpost.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.farmpost.server.pojo.Followed;
import com.farmpost.server.pojo.RespBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author king
 * @since 2022-04-12
 */
public interface IFollowedService extends IService<Followed> {

    /**
     * 点击关注
     * @param followedUserId
     * @return
     */
    RespBean insertFollowed(Integer followedUserId);

    /**
     * 取消关注
     * @param followedUserId
     * @return
     */
    RespBean cancelFollowed(Integer followedUserId);

    /**
     * 查询关注
     * @return
     */
    List<Followed> getFollowed();

    /**
     * 更改关注信息
     * @param userId
     * @param followedUserId
     * @param status
     * @return
     */
    RespBean updateFollowed(Object userId, Object followedUserId, Object status);
}
